package com.bishe.demo.modules.tourism.entity;

import com.bishe.demo.modules.account.entity.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Description RouteEvaluation
 * @Author Lubb
 * @Date 2021/4/1 14:26
 */
public class RouteEvaluation {
    private Integer id;
    private Integer uid;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime time;
    private String message;
    private Integer star;
    private Integer fkUserId;
    private Integer fkRouteId;
    private List<RouteEvaluation> comments;
    private User user;

    public RouteEvaluation() {
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getStar() {
        return star;
    }

    public void setStar(Integer star) {
        this.star = star;
    }

    public Integer getFkUserId() {
        return fkUserId;
    }

    public void setFkUserId(Integer fkUserId) {
        this.fkUserId = fkUserId;
    }

    public List<RouteEvaluation> getComments() {
        return comments;
    }

    public void setComments(List<RouteEvaluation> comments) {
        this.comments = comments;
    }

    public Integer getFkRouteId() {
        return fkRouteId;
    }

    public void setFkRouteId(Integer fkRouteId) {
        this.fkRouteId = fkRouteId;
    }
}
